package desmontec.documentos

import grails.test.*

class DPGControllerTests extends grails.test.ControllerUnitTestCase {
	
	def dpgService
	
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testPesquisarPorNumero() {
		controller.dpgService = dpgService
		controller.params.numero = "1234"
		controller.procurar()		 
    }
	
	void testPesquisarPorBeneficiario() {
		controller.dpgService = dpgService
		controller.params.beneficiario = "Wilson"
		controller.procurar()
	}
	
	void testPesquisarPorResponsavel() {
		controller.dpgService = dpgService
		controller.params.responsavel = "1"
		controller.procurar()
	}
}
